package com.treetao.union.db.service;

import java.util.Set;

import com.baomidou.mybatisplus.extension.service.IService;
import com.treetao.union.db.model.SysRole;
import com.treetao.union.db.model.SysUser;

/**
 * <p>
 *  服务类
 * </p>
 */
public interface SysUserService extends IService<SysUser> {

	SysUser findUserByLoginName(String name);

	SysUser findUserById(Long id);

	SysUser saveUser(SysUser user);

	SysUser updateUser(SysUser user);

	void saveUserRoles(Long id,Set<SysRole> roleSet);

	void dropUserRolesByUserId(Long id);

	int userCount(String param);

	void deleteUser(SysUser user);
}
